<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Home</title>
    <#include "styleandscript.ftl"/>
</head>
<body>
<#include "header.ftl"/>
<#include "./bloglist.ftl"/>
<#if blogPageInfo.pages gt 0 >
    <div>
        <#if blogPageInfo.hasPreviousPage>
            <a href="/home/list/${blogPageInfo.prePage}">上一页</a>
        <#else>
            上一页&nbsp;&nbsp;
        </#if>
        <#list 1..blogPageInfo.pages as item>
            <#if item?index+1==blogPageInfo.pageNum>
                ${item?index+1}&nbsp;
            <#else>
                <a href="/home/list/${item?index+1}">${item?index+1}</a>&nbsp;
            </#if>
        </#list>
        <#if blogPageInfo.hasNextPage>
            <a href="/home/list/${blogPageInfo.nextPage}">下一页</a>
        <#else>
            下一页
        </#if>
    </div>
</#if>
</body>
</html>